<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <input id="input" />
    <input id="btn1" onclick="heh()" type="button" value="输完之后点我" />
    <div class="str"></div>
    <script>
      function heh() {
        var input = document.getElementById('input')
        let value=Number(input.value)
        let str=""
        let arr=[value]
        for (let index = 1; index < 370; index++) {
          str+=value*index+",<br/>"
          arr.push(value*index)
        }
        document.querySelector('.str').innerHTML=str
      }
   
    </script>
  </body>
</html>
